package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MonitorDevice extends Model<MonitorDevice> {

    public static final String ID = "id";
    public static final String SITE_ID = "site_id";
    public static final String DEVICE_ID = "device_id";
    public static final String DEVICE_DESC = "device_desc";
    public static final String AI_EVENT_STATUS = "ai_event_status";
    public static final String STATUS = "status";
    public static final String THUMBNAIL = "thumbnail";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    private static final long serialVersionUID = 1L;
    private Long id;
        /**
     * 工地id
     */
         private Long siteId;
        /**
     * 设备id
     */
         private String deviceId;
        /**
     * 设备描述
     */
         private String deviceDesc;
        /**
     * Ai事件状态:0关,1开
     */
         private Boolean aiEventStatus;
        /**
     * 设备状态
     */
         private Boolean status;
        /**
     * 缩略图
     */
         private String thumbnail;
        /**
     * 创建时间
     */
         @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
        /**
     * 未删除-0  已删除-1
     */
         private Boolean delFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
